package com.thirtydays.frame.data

import com.thirtydays.frame.constant.ACCESSTOKEN
import com.thirtydays.frame.constant.BASE_URL
import com.thirtydays.frame.constant.IS_AGREE
import com.thirtydays.frame.constant.IS_LOGIN
import com.thirtydays.frame.util.ext.Mmkv

/**
 * @创建者：小垚
 * @时间：2021/7/2211:48
 * @描述：
 */
object DataManager  {

    fun clearLogins(){
        isLogin = false
        token = ""
    }

    var baseUrl: String by Mmkv(BASE_URL, "")

    //是否登录
    var isLogin: Boolean by Mmkv(IS_LOGIN, false)

    //是否同意协议
    var isAgree: Boolean by Mmkv(IS_AGREE, false)

    //全局token
    var token: String by Mmkv(ACCESSTOKEN, "")
}